-- GENERATED SPELL FOR [Kayra Longmane] --


function spell0_17969(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(31401,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17969', 12000, 1)
end

function spell1_17969(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17969', 2000, 1)
end

function Sorts_17969(pUnit, Event)
local choix_sorts_17969 = math.random(0, 1)
if choix_sorts_17969 == 0 then
pUnit:RegisterEvent('spell0_17969', 1, 1)
end
if choix_sorts_17969 == 1 then
pUnit:RegisterEvent('spell1_17969', 1, 1)
end
end

function mob17969_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17969', math.random(1500, 3000), 1)
end

function mob17969_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17969_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17969_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17969, 1, 'mob17969_Action')
RegisterUnitEvent(17969, 2, 'mob17969_Leave')
RegisterUnitEvent(17969, 3, 'mob17969_Kill')
RegisterUnitEvent(17969, 4, 'mob17969_Die')
